package com.bawei.model_sevent.Activity.MySql;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import androidx.annotation.Nullable;

/**
 * 时间：2021/11/18 18:32.
 * 类名：MySql
 * 作用：Model_sevent
 * 作者:张羽_zy
 */
public class MySql extends SQLiteOpenHelper {
    public MySql(@Nullable Context context, @Nullable String name, @Nullable SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table goods(name varchar(50),images varchar(100))");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
